package com.by.toolkitspring.logback;

import ch.qos.logback.core.PropertyDefinerBase;
import cn.hutool.core.date.LocalDateTimeUtil;
import com.by.toolkit.consts.DatePatternConst;

import java.time.LocalDateTime;

public class DateDefiner extends PropertyDefinerBase {

    private static String dateStr;

    static {
        dateStr = LocalDateTimeUtil.format(LocalDateTime.now(), DatePatternConst.DATE_STAMP);
    }

    @Override
    public String getPropertyValue() {
        return dateStr;
    }

}
